//导入路由模块
import VueRouter from 'vue-router'

import Home from './components/tabbar/Home.vue'
import Member from './components/tabbar/Member.vue'
import Cart from './components/tabbar/Cart.vue'
import Search from './components/tabbar/Search.vue'
import NewsList from './components/news/Newslist.vue'
import NewsInfo from './components/news/NewsInfo.vue'
import PhotoList from './components/photos/Photolist.vue'
import PhotoInfo from './components/photos/PhotoInfo.vue'

var router = new VueRouter({
  routes:[
    {path: '/', redirect: '/home'},
    {path: '/home', component: Home},
    {path: '/member', component: Member},
    {path: '/cart', component: Cart},
    {path: '/search', component: Search},
    {path: '/home/newslist', component: NewsList},
    {path: '/home/NewsInfo/:id', component: NewsInfo},
    {path: '/home/photolist', component: PhotoList},
    {path: '/home/photoInfo/:picList', component: PhotoInfo}
  ],
  linkActiveClass: 'mui-active'
})

export default router
